﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace EmbeddedSharp.Scripting.Interfacing.Mathematica.View
{
    public partial class MmaGraphicView : Form
    {
        private readonly Image image;

        public MmaGraphicView()
        {
            InitializeComponent();
        }

        public MmaGraphicView(Image image)
            : this()
        {
            this.image = image;
            Load += MmaGraphicView_Load;
        }

        public void MmaGraphicView_Load(object sender, EventArgs e)
        {
            pictureBox1.Image = image;
        }
    }
}